#!/bin/bash

cd `dirname $0`

if ! which goreplay; then
    echo "goreplay not found"
    exit 1
fi

port=8001
out_file=material.log
echo "监听端口$port, 保存到文件$out_file"

sudo goreplay --input-raw :$port --output-file $out_file
# --output-stdout
# --output-file $out_file
# --output-http="http://112.74.76.100:9006"